package com.example.base.entity

import com.chad.library.adapter.base.entity.MultiItemEntity

/**
 * 商品实体类--其他任何界面请求商品时均可使用这个实体类
 */
data class GoodsEntity(
    val limit: Int,
    val list: List<Goods>,
    val page: Int,
    val total: Int,
    val totalPage: Int
)

data class Goods(
    val activity: String,
    val activityH5: Any,
    val cartNum: Any,
    val ficti: Int,//虚拟销量
    val flatPattern: Any,
    val id: Int,
    val image: String,
    val otPrice: String,
    val price: String,
    val sales: Int,//首页显示销售数量，不然会显示成null
    val stock: Any,
    val storeName: String,
    val unitName: Any,
    //多布局展示商品列表，目前没有分类  自己设置分类  可设置奇数偶数行来区分
    var type:Int
): MultiItemEntity{
    override val itemType: Int
        get() = type
}